<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./lib//swiper/swiper.min.css">
    <style>
        html,body{
            height: 100%;
        }
        .ok{
            margin: 0 auto;
            height: 50px;
            width: 50px;
            background-color: royalblue;
            transform-origin: right bottom ;
            position: relative;
        }
       
           .ok1{
            height: 50px;
            width: 50px;
            position: absolute;
            left: 50%;
            top: 50%;
            /* transform: translateX(-50%) translateY(-400%); */
            background-color: royalblue;
        }
        .ok:hover{
            opacity: 0;
            transition: all 1.9s linear
        }
        .swiper-container {
    width: 100%;
    height: 100%;
    background-color:red;
    position: absolute;
    top:0;
    left:0;
}  
     
    </style>
</head>
<body>
    <div class="ok"></div>
    <div class="ok1"></div>
   
</body>
<script src="./lib/swiper/swiper.min.js"></script>
<script>
    // var mySwiper = new Swiper('.swiper-container', {
            // direction: 'vertical', // 垂直切换选项
        //      navigation: {
        //     nextEl: '.swiper-button-next',
        //     prevEl: '.swiper-button-prev',
        // },

            // effect: 'cube',
            // loop: true, // 循环模式选项

            // 如果需要分页器
            // pagination: {
            //     el: '.swiper-pagination',
            // },
    var swiper = new Swiper('.swiper-container', {
        navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev',
        },
    });
            // 如果需要前进后退按钮
        //     navigation: {
        //         nextEl: '.swiper-button-next',
        //         prevEl: '.swiper-button-prev',
        //     },

        //     // 如果需要滚动条
        //     // scrollbar: {
        //     //     el: '.swiper-scrollbar',
        //     // },
        // })     
        
</script>
</html>